package com.hzlh.mq;

import com.hzlh.configuration.RabbitConfig;
import lombok.extern.slf4j.Slf4j;
//import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.stereotype.Service;

/**
 * @Description: Mq消息发送
 * @Author: linker_zhang
 * @Date: Created in 2020/6/2 15:01
 * @Version:1.0.0
 */
//@Service
@Slf4j
public class MsgProducer {
//    RabbitConfig rabbitConfig = new RabbitConfig();
//    private RabbitTemplate rabbitTemplate = rabbitConfig.rabbitTemplate();
//
//
//    public void sendMsg(String routingKey, String context) {
//        LOGGER.debug("推送消息topic为："+routingKey+";推送消息内容为"+context);
//        rabbitTemplate.convertAndSend(routingKey, context);
//    }
}